from django.urls import re_path
# from .view import gatherings

from .views import rolist
from activity.views import gatherings

urlpatterns = [
    # """吐槽模块路由"""

    re_path('^spit/$', rolist.SpitView.as_view()),  # 吐槽列表/发布吐槽
    re_path('^spit/(?P<id>\d+)/collect/$', rolist.SpitFollowView.as_view()),  # 收藏或取消
    re_path('^spit/(?P<id>\d+)/updatethumbup/$', rolist.SpitHasthumbupView.as_view()),  # 点赞或取消
    re_path('^spit/(?P<id>\d+)/children/$', rolist.SpitCommentView.as_view()),  # 获取吐槽评论
    re_path('^spit/(?P<id>\d+)/$', rolist.SpitDetailView.as_view()),  # 吐槽详情

]
# router = DefaultRouter()
# router.register(r'spit', rolist.SpitView, basename='questions')
# urlpatterns += router.urls
